package com.tff.gmall.manger.mapper;

import com.tff.gmall.beans.PmsProductSaleAttr;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PmsProductSaleAttrMapper {

    Integer savePmsProductSaleAttr(PmsProductSaleAttr pmsProductSaleAttr);

    List<PmsProductSaleAttr> spuSaleAttrListMapper(@Param("spuId") String spuId);

    /***
     * 查询sku的销售属性
     * @param productId
     * @return
     */
    List<PmsProductSaleAttr> spuSaleAttrListCheckBySku(@Param("productId") String productId,@Param("skuId") String skuId);
}
